<template>
    <div class="section-wrap">
        <!-- 头部 -->
         <div class="headerBox">
        <div class="header">
            <x-icon type="ios-arrow-left" size="" class="icon-white" @click="goBack"></x-icon>扣分问题项
        </div>
        </div>
        <div class="form-section" style="margin-top: 40px;">
            <div class="details">
                <div class="details_top">
                    <p>扣分问题项数量：{{result.count}}项</p>
                </div>
                <div class="kf_details">
                    <tree-classify :classify-list="result.divisionClassList" :keyList="result.recordItemList" :canAudit="false"></tree-classify>
                </div>

                <!-- <ul class="details_list">
                    <li>
                        <div>综合部分<x-icon type="ios-arrow-up" size="22" class="icon-up"></x-icon></div>
                        <ul class="list_3">
                            <li>风险管理<x-icon type="ios-arrow-right" size="22" class="icon-right"></x-icon><p>1</p></li>
                            <li>安全培训管理<x-icon type="ios-arrow-right" size="22" class="icon-right"></x-icon><p>1</p></li>
                        </ul>
                    </li>
                    <li>
                        <div>安全部分<x-icon type="ios-arrow-up" size="22" class="icon-up"></x-icon></div>
                        <ul class="list_2">
                            <li>
                                <div>通用部分<x-icon type="ios-arrow-up" size="22" class="icon-up"></x-icon></div>
                                <ul class="list_3">
                                    <li>临时用电<x-icon type="ios-arrow-right" size="22" class="icon-right"></x-icon><p>3</p></li>
                                    <li>消防<x-icon type="ios-arrow-right" size="22" class="icon-right"></x-icon><p>3</p></li>
                                    <li>高处作业<x-icon type="ios-arrow-right" size="22" class="icon-right"></x-icon><p>3</p></li>
                                </ul>
                            </li>
                            <li>
                                <div>线路部分<x-icon type="ios-arrow-down" size="22" class="icon-down"></x-icon></div>
                            </li>
                            <li>
                                <div>质量部分<x-icon type="ios-arrow-up" size="22" class="icon-up"></x-icon></div>
                                <ul class="list_3">
                                    <li>高处作业<x-icon type="ios-arrow-right" size="22" class="icon-right"></x-icon><p>6</p></li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                </ul> -->
            </div>

            <!-- <div class="btns_div">
                <a class="saveBtn">保 存</a>
            </div> -->
        </div>
    </div>
</template>
<script>
    import treeClassify from '@commonComponents/treeClassify';
    export default {
        data () {
            return {
                isDisabled: true, // 是否禁止输入
                detailData: {
                    ResolveStartTime:'2019-07-01',
                    ResolveEndTime:'2019-08-29',
                    DeptName1:'考核单位名称',
                    name:'曾乐',
                    type:'2019考核表',
                    exName:'考核表',
                    time:'2019-07-23',
                    leader:'刘敏'
                },
                member1:'张丽',
                member2:'周丽丽',
                result: {
                    count: 0,
                    divisionClassList: [],
                    recordItemList: []
                },
                paramitem: {
                    recordId: ""
                }
            }
        },
        components: {
            treeClassify
        },
        created () {
            this.getItem();
        },
        methods: {
            getItem() {
                this.paramitem.recordId = this.$route.query.id;
                this.$axiosAjax.GetH5RecordQuestion(this.paramitem).then(res => {
                    if (res.data.success) {
                        this.result = res.data.result;
                    }
                }).catch(err => {});
            },
            goBack(){
                this.$router.go(-1);
            }
        }
    }
</script>
<style lang="less" scoped>
    .details{
        .details_top{
            border-bottom: 10px solid #ebeef2;
            height: 55px;
            line-height: 45px;
            padding-right: 20px;
            padding-left: 20px;
            background: #fff;
            p{
                float: left;
                color: #469b7a;
                font-size: 14px;
                font-weight: bold;
            }
            .vux-x-icon{
                fill:#999;
                float: right;
                margin-top: 12px;
            }
        }
        .details_list{
            .vux-x-icon{
                fill:#999;
                float: right;
                margin-top: 16px;
            }
            li{
                >div {
                    height: 54px;
                    line-height: 54px;
                    padding-right: 20px;
                    border-bottom: 1px solid red !important;
                }
            }
            >li{
                justify-content: space-between;
                padding-left: 20px;
                border-bottom: 5px solid #ebeef2;
                >div{
                    font-weight: bold;
                    font-size: 16px;
                }
                .list_2{
                    li{
                        border-top: 1px solid #ebeef2;
                        >div{
                            font-weight: bold;
                            font-size: 14px;
                        }
                    }
                }
                .list_3{
                    li{
                        font-size: 14px;
                        text-indent: 2em;
                        height: 55px;
                        line-height: 54px;
                        border-top: 1px solid #ebeef2;
                        padding-right: 20px;
                        >p{
                            display: block;
                            height: 15px;
                            width: 15px;
                            float: right;
                            font-size: 12px;
                            color: #fff;
                            border-radius: 50%;
                            background: #469b7a;
                            margin-top: 19px;
                            line-height: 17px;
                            text-align: center;
                            text-indent: 0;
                        }
                    }
                }
            }
        }
    }
    .btns_div{
        background: #ebeef2;
        padding: 30px 20px 55px;
        justify-content: center;
        display: flex;
        a{
            height: 40px;
            border-radius: 20px;
            display: inline-block;
            width: 200px;
            text-align: center;
            line-height: 40px;
            color: #fff;
        }
        .saveBtn{
            background: #469b7a;
        }
        .submitBtn{
            background: #15bd84;
        }
    }
</style>
<style lang="less">
    .kf_details {
        .details_list > li {
            // padding-left: 0;
            // padding-right: 0;
        }
        .details_list > li > div:first-of-type {
            // padding-left: 20px;
            border-bottom: 1px solid #ebeef2;
        }
    }
</style>
